//
//  InteralModel.m
//  day-07
//
//  Created by hcios on 2017/7/9.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import "InternalModel.h"
#import "Tools.h"

@implementation InternalModel

-(instancetype)initWithDict:(NSDictionary *)dict{
    if (self = [super init]) {
        _destinations_id = numberToString(dict[@"id"]);
        _destinations_name_zh_cn = NonEmptyString(dict[@"name_zh_cn"]);
        _destinations_name_en = NonEmptyString(dict[@"name_en"]);
        _destinations_poi_count = numberToString(dict[@"poi_count"]);
        _destinations_image_url = NonEmptyString(dict[@"image_url"]);
    }
    return self;
}


-(instancetype)initWithDict2:(NSDictionary *)dict{
    if (self = [super init]) {
        _destinations_name_zh_cn = NonEmptyString(dict[@"name_zh_cn"]);
    }
    return self;
}
@end
